#coding:utf-8
#带cookies登陆
import requests as req
import sys
'''cookies={}
raw_cookies="="
for line in raw_cookies.split(';'):
  key,value=line.split('=',1)#1代表只分一次，得到两个数据
  cookies[key]=value
'''
testurl='http://59.78.108.52/webxs/webxs_kccjPrint.asp?userid=42471&deptid=3&usertype=s&identity=21214583'
response=req.get(testurl)
type = sys.getfilesystemencoding()
print response.text.encode("ISO-8859-1").decode(type)